package com.qiche.service.impl;

import com.qiche.model.Area;
import com.qiche.model.Bank;
import com.qiche.service.AreaService;
import com.qiche.service.BankService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * Created by Linzw on 2018/01/24.
 */
@Service("bankService")
public class BankServiceImpl extends BaseService<Bank> implements BankService {

	@Override
	public List<Bank> getAllBanksByDistrictCode(String districtCode) {
		Example example=new Example(Bank.class);
		Example.Criteria criteria=example.createCriteria();
		criteria.andEqualTo("cityCode",districtCode);
		return mapper.selectByExample(example);
	}
}
